/**
 * @author liangxi
 * @since 2023/12/21
 */

#ifndef DESIGNPATTERN_MALLARDDUCK_H
#define DESIGNPATTERN_MALLARDDUCK_H

#include <iostream>
#include "../Duck.h"

namespace Adapter {

    class MallardDuck : public Adapter::Duck {
    public:
        void fly() override {
            std::cout << "Quack" << std::endl;
        }

        void quack() override {
            std::cout << "I am flying" << std::endl;
        }
    };

} // Adapter

#endif //DESIGNPATTERN_MALLARDDUCK_H
